class CreateTrips < ActiveRecord::Migration
  def self.up
    create_table :trips do |t|
      t.string :tri_country, :limit => 100, :null => false
      t.string :tri_city, :limit => 100, :null => false
      t.datetime :tri_start_date, :null => false
      t.datetime :tri_end_date, :null => false
	  t.integer :user_id, :null => false
      t.integer :tri_shared, :null => false, :default => 1
      t.integer :tri_status, :null => false, :default => 1
	  t.string	:tri_lodging, :null => false

      t.timestamps
    end
  end

  def self.down
    drop_table :trips
  end
end
